include('shared.lua')

function ENT:Initialize()
end

function ENT:HUDPaint()
end

ENT.RenderGroup 		= RENDERGROUP_TRANSLUCENT

function ENT:DrawTranslucent(dontdrawmodel)
	if dontdrawmodel then return end
	
	self:Draw()
		
	local quant = self.Entity:GetNWInt("Quantity")
	if quant < 2 then return end
	
	local entpos = self.Entity:GetPos()
	local angs = self.Entity:GetAngles()
	
	local color = Color(self.Entity:GetColor())
	if tonumber(color.r)<10 then color.r=10 end
	if tonumber(color.g)<10 then color.g=10 end
	if tonumber(color.b)<10 then color.b=10 end
	
	cam.Start3D2D(self.Entity:GetPos()+angs:Up()*7.55+angs:Right()*3.25, self.Entity:GetAngles(), .5)
		draw.DrawText(tostring(quant), "Trebuchet18", 0, -15, color, 1)
	cam.End3D2D()
end